export const REQUEST = 'request';
export const SUCCESS = 'success';
export const FAILURE = 'failure';

export const SagaActionType = (baseType) => {
  return {
    REQUEST: `${baseType}/request`,
    SUCCESS: `${baseType}/success`,
    FAILURE: `${baseType}/failure`,
  };
};
export type sagaType<req, scs, err> = {
  type: string,
  payload?: req,
  success?: scs,
  error?: boolean,
  fail?: err,
};
